When I was doing something, I found that what I did in ie6.0 was totally invisible to ff.
100% CSS incompatibility I have read the relevant information. I personally feel that the following is a stupid and quick way to solve the compatibility problem.
The method is used to write different CSS for different browsers! Important, but IE7 and FF are not good.
The
The browsers of different IE versions have different interpretations of the WEB standard pages we have created. Specifically, they have different interpretations of CSS. To be compatible with these, we can use conditional annotations for their respective definitions, to achieve compatibility. For example:
Different browsers send different headers for refreshing behaviors, but different refresh behaviors.
3. Local browser -- Proxy Server (squid) -- remote server (RS)
In this data stream, let's think about how it works. The local Browser needs to obtain the data on a url and then send the HTTP request to squid, squid conv
Css hack in different browsers and csshack in browsers
Today, I took over a new project and will finish it by the end of the year. I wish you a smooth completion of your work. Some browser compatibility problems were encountered when setting up the CSS framework. So let's count the css hack for each browser.
(Pasted from encyclopedia)
CSS Hack for Firefox:@-Moz
I had a project several months ago and had a headache in displaying and executing JavaScript and CSS in different browsers. Today I searched the internet and summarized the information, this document is from the Internet and cannot be used to specify the source.
I. There are two methods to write CSS for different browsers
Let CSS distinguish between different browsersDistinguish between different browsers, CSS hack notation:
Difference between IE6 and FF:Background:orange;*background:blue;
Difference between IE6 and IE7:Background:green!important;background:blue;
Difference between IE7 and FF:Background:orange; *background:green;How to make di
How to make different browsers call different CSS stylesBecause of the degree of support for the standard, the same CSS style sheet is often rendered in different Web browsers. In the case of Microsoft Internet Explorer and Mozilla Firefox, the two
This method supports IE browsers and other browsers.
1, first define two link, of course you can also be one, the second is to change the CSS
Copy Code code as follows:
2, the following JavaScript code will be based on different browser size, change the CSS
Copy Code code as follows:
function Adjuststyle (width) {
width = parsei
Test environment (client browser)
IE6,IE7, IE8 compatibility mode, IE8
Firefox 3.6.8, Google Chrome 5.0.375.125
The standard definitions of two functions are described first.
Elementnode.setattribute (Name,value)
Name required. Specify the name of the property to set.
Value required. Specify the property value to set.
This method sets the specified property to the specified value. If a property with the specified name does not exist, the method creates a new property.
Elementnode.getattribute
There is often a problem with form development, and input and select are the most commonly used two tags, but one problem is tricky. Input and select are two different and models, and if you simply set the width of both to the same, the following effect will appear:And it is in all browsers, the following directly to see the box model layout in each browser will be at a glance;Chrome:Firefoxie: (here ie to
, and the order is not related, in IE7 and Firefox red withIt doesn't matter who is blue first.Method Two: Conditional comments (only valid for IE browser) first write their own CSS styles for different browsers, and then add the following code to the head to accommodate the different versions of the IE browser:According to the conditional comment this is Interne
default is the reason for the selection (see figure below).
If you remove this option, the font displayed by the Ie7/ie8 browser will be unified with the other browsers. Conversely, enable ClearType via Windows Control Panel > ClearType Tuning (see figure below)
The ClearType tuning option for the operating system control Panel can be implemented in the following ways:
1. Click Start, click Control Panel, click Appearance and Theme, and then cl
Why is the $ _ SERVER array order different from that of print_r ($ _ SERVER) in different browsers? array sorting is different in chrome and ie. why?
Reply to discussion (solution)
$ _ SERVER Keys starting with HTTP _ are transmitted by the requester.Different sorting order should be related to the order in
Because of the browser (IE, Gecko, opera ...) The rendering of the CSS is different, resulting in differences in display, so you can load a different way to solve the CSS, the following introduction to the next two methods to achieve, not necessarily very practical, difficult to play a.
Pure CSS Way
The following is a reference fragment:
Code
. box{
Width:20em;
Height:20em;
Background: #369;
}
/*--
This method supports IE and other browsers.
1. Define two links first. Of course, you can also be one, and the second is the css to be changed.Copy codeThe Code is as follows:2. The following JavaScript code will change css based on different browser sizes.Copy codeThe Code is as follows: function adjustStyle (width ){Width = parseInt (width );If (width $ ("# Css"). attr ("href", "css/narrow.css ");} Else i
Recently Viktorija pashua, a photographer from California, has combined various web browser icons with fashion and interpreted the "temperament" characteristics of different browsers in a special way.
The fashion photographer has been imagining what kind of appearance and posture the browsers would look like if they were women? Recently, to realize her idea, she
Different browsers (ie, Gecko, opera...) have different rendering methods for CSS, resulting in different display effects,Therefore, we can solve this problem by loading different CSS. The following describes the two methods,It is not necessarily very practical and difficult
This article mainly introduces jquery's method of using different css style sheets for browsers of different sizes. If you need jquery, you can refer to this method to support IE and other browsers.
1. Define two links first. Of course, you can also be one, and the second is the css to be changed.
The Code is as foll
Different browsers have different criteria for terminating script execution: The statements and quantities that the IE monitor script executes. When the number of executed statements reaches the maximum limit, the default is 5 million, which pops up the dialog box that terminates the script run. The total time that Firefox monitors scripts to run. When the pre-se
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.